import json

import elasticsearch


def insert(body):
    es = elasticsearch.Elasticsearch(hosts=
                                     [{'host': '59.110.137.94', 'port': 9200}])
    re = es.index(index='car_info', doc_type='des', body=body)
    print(json.dumps(re))
